package com.yj.lottery_system.service.dto;

import com.yj.lottery_system.service.enums.ActivityStatusEnum;
import lombok.Data;

import java.io.Serializable;
@Data
public class ActivityDTO implements Serializable {
    //活动id
    private Long activityId;

    //活动名
    private String activityName;

    //活动描述
    private String description;

    //活动状态
    private ActivityStatusEnum status;

    //活动是否结束
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }
}
